import "./App.css";
import "antd/dist/antd.min.css";
import { ConfigProvider } from "antd";
import zh_CN from "antd/es/locale/zh_CN";
import {
  Switch,
  Route,
  Redirect,
  NavLink,
  Routes,
  Outlet,
  Navigate,
} from "react-router-dom";
// import ParkRouter from './views/parkManagement/ParkRouter'
// import BankRouter from './views/bankManagement/BankRouter'
import ParkRouter from "./views/parkManagement/ParkManagement";
import BankRouter from "./views/bankManagement/BankManagement";

import ServiceTeam from "./viwes/ServiceTeam/ServiceTeam";

import StandardTasks from "./viwes/ServiceTeam/StandardTasks";
import EmployeeAttendanceSettings from "./viwes/ServiceTeam/EmployeeAttendanceSettings";
import DataTemplate from "./viwes/ServiceTeam/DataTemplate";

import CompanyMessage from "./companyMessage/index";
import CompanyDetails from "./companyMessage/companyDetails/index";
import CompanyPaper from "./corbox/index";

// 路由文件
// import { Route, BrowserRouter, Link, Routes } from "react-router-dom";
// 子组件
import CharacterSet from "./userGroup/CharacterSet/CharacterSet";
import PermissionSet from "./userGroup/PermissionSet/PermissionSet";
import InteriorUser from "./userGroup/InteriorUser/InteriorUser";
import ExteriorUser from "./userGroup/ExteriorUser/ExteriorUser";
function App() {
  return (
    <>
      <Routes>
        <Route path="/" element={<Navigate to="/main" />}>
          {" "}
        </Route>
        {/* <Route path='/login' element={<Login />}></Route> */}
        <Route path="/main" element={<ServiceTeam />}>
          <Route path="park" element={<ParkRouter />}></Route>
          <Route path="bank" element={<BankRouter />}></Route>

          <Route index element={<CompanyMessage />}></Route>

          <Route path="StandardTasks" element={<StandardTasks />}></Route>
          <Route path="DataTemplate" element={<DataTemplate />}></Route>
          <Route
            path="EmployeeAttendanceSettings"
            element={<EmployeeAttendanceSettings />}
          ></Route>

          <Route path="companyMessage" element={<CompanyMessage />}>
            <Route path="companyDetails" element={<CompanyDetails />}></Route>
          </Route>
          <Route path="companyPaper" element={<CompanyPaper />}></Route>
          <Route path="CharacterSet" element={<CharacterSet />} />
          <Route path="PermissionSet" element={<PermissionSet />} />
          <Route path="InteriorUser" element={<InteriorUser />} />
          <Route path="ExteriorUser" element={<ExteriorUser />} />
        </Route>
      </Routes>
    </>
  );
}

export default App;
